// 统一响应格式
export interface ApiResponse<T = any> {
    code: number
    success: boolean
    msg: string
    data: T
}

// 分页响应格式
export interface PageResponse<T = any> {
    list: T[]
    total: number
    page: number
    pageSize: number
}

export interface ApiPageResponse<T = any> extends ApiResponse<PageResponse<T>> { }

// 错误响应
export interface ErrorResponse {
    code: number
    success: false
    msg: string
    data: null
}

// 成功响应
export interface SuccessResponse<T = any> {
    code: 200
    success: true
    msg: string
    data: T
} 